package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Jan, 2013
 * <p>This page is shown after selecting an account in the MatchSetsDetails page.
 * Please refer to UI.SelectItemAccount.png in doc-files.
 */
public class SelectItemAccount {

	/**
	 * Key text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_ddlKeyStatus")
	public WebElement Key_textField;
	
	/**
	 * Level text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_ddlEntityLevel")
	public WebElement Level_textField;
	
	/**
	 * From Account text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_tbAcctFrom")
	public WebElement From_Account_textField;
	
	/**
	 * Key3 text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_tbKey3A")
	public WebElement Key3_textField;
	
	/**
	 * Entity text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_ddlEntity")
	public WebElement Entity_textField;
	
	
	/**
	 * To Account text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_tbAcctTo")
	public WebElement To_Account_textField;
	
	/**
	 * Groups text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_ddlGroups")
	public WebElement Groups_textField;
	
	
	/**
	 * Refresh icon
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_Filters2_ibRefresh")
	public WebElement Refresh_icon;
	
	
	/**
	 * Page XX text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_tbGotoPage")
	public WebElement Page_XX_textField;
	
	
	/**
	 * The account table
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain")
	public WebElement Account_table;
	
	/**
	 * Popup iFrame
	 */
	@FindBy (name = "Popup")
	public WebElement popup_iFrame;
	
	/**
	 * 1st account's checkbox in the account table
	 */
	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain']/tbody/tr[2]/td[1]/span/input")
	public WebElement firstAccountCheckBox;
	
	/**
	 * 2nd account's checkbox in the account table
	 */
	@FindBy (xpath = "//table[@id='ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain']/tbody/tr[3]/td[1]/span/input")
	public WebElement secondAccountCheckBox;
	
	/**
	 * Atlanta 1002 account checkbox
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_ctl02_cbItem_696")
	public WebElement Atlanta_1002_accountCheckbox;
	
	/**
	 * Team filter text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_filterRow_tbFilter1_TeamCode")
	public WebElement Team_filterField;
	
	/**
	 * Entity filter text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_filterRow_tbFilter1_EntityCode")
	public WebElement Entity_filterField;
	
	/**
	 * Account filter text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_filterRow_tbFilter1_AccountNumber")
	public WebElement Account_filterField;
	
	/**
	 * Description filter text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_filterRow_tbFilter1_AccountName")
	public WebElement Description_filterField;
	
	/**
	 * Cncy filter text field
	 */
	@FindBy (xpath = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_gvMain_filterRow_tbFilter1_Currency")
	public WebElement Cncy_filterField;
	
	/**
	 * Apply link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_lbApplyFilters")
	public WebElement Apply_link;
	
	/**
	 * Clear link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_hlClearFilters")
	public WebElement Clear_link;
	
	/**
	 * Advanced link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_DBGrid_DBGrid_hlToggleFilters")
	public WebElement Advanced_link;
	
	
	/**
	 * Select button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnSelect")
	public WebElement Select_button;
	
	/**
	 * Cancel button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_btnCancel")
	public WebElement Cancel_button;
	
}
